<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> 


<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>H+ 后台主题UI框架 - 主页</title>

    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico">
    <link href="${ctx }/res/hplus/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="${ctx }/res/hplus/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="${ctx }/res/hplus/css/animate.min.css" rel="stylesheet">
    <link href="${ctx }/res/hplus/css/style.min.css?v=4.0.0" rel="stylesheet">
</head>


<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
						<div class="clients-list">
                            <ul class="nav nav-tabs subTabs">
                                <li data-type="my" target="mybox"><a>我的</a></li>
                                <!-- <li data-type="sub" target="subbox"><a>子账号</a></li> -->
                            </ul>
                            <%-- <div class="tab-content">
                                <div id="mybox" class="tab-pane" style="height:auto;">
                                    <div class="row">
							            <div class="col-sm-3">
							                <div class="widget p-lg text-center yellow-bg">
							                    <div class="m-b-md">
							                        <h1 class="m-xs">${currentMonth.amount }<small>元</small></h1>
							                        <hr>
							                        <h1 class="m-xs">${currentMonth.quantity }<small>笔</small></h1>
							                    </div>
							                        <h4>月</h4>
							                </div>
							            </div>
							            <div class="col-sm-3">
							                <div class="widget navy-bg p-lg text-center">
							                    <div class="m-b-md">
							                        <h1 class="m-xs">${currentQuarter.amount }<small>元</small></h1>
							                        <hr>
							                        <h1 class="m-xs">${currentQuarter.quantity }<small>笔</small></h1>
							                    </div>
							                        <h4>季度</h4>
							                </div>
							            </div>
							            <div class="col-sm-3">
							                <div class="widget p-lg text-center purple-bg">
							                    <div class="m-b-md">
							                        <h1 class="m-xs">${currentYear.amount }<small>元</small></h1>
							                        <hr>
							                        <h1 class="m-xs">${currentYear.quantity }<small>笔</small></h1>
							                    </div>
							                        <h4>年度</h4>
							                </div>
							            </div>
							            <div class="col-sm-3">
							                <div class="widget p-lg text-center lightred-bg">
							                    <div class="m-b-md">
							                        <h1 class="m-xs">${allSubAccount.amount }<small>元</small></h1>
							                        <hr>
							                        <h1 class="m-xs">${allSubAccount.quantity }<small>个</small></h1>
							                    </div>
							                        <h4>子账号开通收益</h4>
							                </div>
							            </div>
							        </div>
							        <div class="row">
							            <div class="col-sm-12">
							                <div class="ibox float-e-margins">
												<div class="ibox-title">
							                        <h5>近三个月的订单</h5>
							                    </div>
							                    <div class="ibox-content">
							                        <table class="table table-bordered">
							                            <thead>
							                                <tr>
							                                    <th>月份</th>
							                                    <th>订单总数</th>
							                                    <th>订单总额</th>
							                                </tr>
							                            </thead>
							                            <tbody>
							                            	<c:forEach items="${threeMonth }" var="n" varStatus="idx">
							                                <tr>
							                                    <td>${n.month }</td>
							                                    <td>${n.quantity }</td>
							                                    <td>${n.amount }</td>
							                                </tr>
							                                </c:forEach>
							                            </tbody>
							                        </table>
							                    </div>
							                </div>
							            </div>
							        </div>
							        
							        <div class="row">
							            <div class="col-sm-12">
							                <div class="ibox float-e-margins">
												<div class="ibox-title">
							                        <h5>近三个月开通的子账号</h5>
							                    </div>
							                    <div class="ibox-content">
							                        <table class="table table-bordered">
							                            <thead>
							                                <tr>
							                                    <th>月份</th>
							                                    <th>开通个数</th>
							                                    <th>收益总额</th>
							                                </tr>
							                            </thead>
							                            <tbody>
							                                <c:forEach items="${subAccountThreeMonth }" var="n" varStatus="idx">
							                                <tr>
							                                    <td>${n.month }</td>
							                                    <td>${n.quantity }</td>
							                                    <td>${n.amount }</td>
							                                </tr>
							                                </c:forEach>
							                            </tbody>
							                        </table>
							                    </div>
							                </div>
							            </div>
							        </div>
                                </div> --%>
                                
                                
                                <div id="subbox" class="tab-pane" style="height:auto;">
                                    <div class="row">
							            <div class="col-sm-3">
							                <div class="widget p-lg text-center yellow-bg">
							                    <div class="m-b-md">
							                        <h1 class="m-xs"><fmt:formatNumber value="${empty currentMonth.amount ? 0 :currentMonth.amount }" type="currency" pattern="0.00"/><small>元</small></h1>
							                        <hr>
							                        <h1 class="m-xs">${empty currentMonth.quantity ? 0 :currentMonth.quantity }<small>笔</small></h1>
							                    </div>
							                        <h4>月</h4>
							                </div>
							            </div>
							            <div class="col-sm-3">
							                <div class="widget navy-bg p-lg text-center">
							                    <div class="m-b-md">
							                        <h1 class="m-xs"><fmt:formatNumber value="${empty currentQuarter.amount ? 0 : currentQuarter.amount}" type="currency" pattern="0.00"/><small>元</small></h1>
							                        <hr>
							                        <h1 class="m-xs">${empty currentQuarter.quantity ? 0 : currentQuarter.quantity}<small>笔</small></h1>
							                    </div>
							                        <h4>季度</h4>
							                </div>
							            </div>
							            <div class="col-sm-3">
							                <div class="widget p-lg text-center purple-bg">
							                    <div class="m-b-md">
							                        <h1 class="m-xs"><fmt:formatNumber value="${empty currentYear.amount ? 0 : currentYear.amount}" type="currency" pattern="0.00"/><small>元</small></h1>
							                        <hr>
							                        <h1 class="m-xs">${empty currentYear.quantity ? 0 :currentYear.quantity}<small>笔</small></h1>
							                    </div>
							                        <h4>年度</h4>
							                </div>
							            </div>
							        </div>
							        <div class="row">
							            <div class="col-sm-12">
							                <div class="ibox float-e-margins">
												<div class="ibox-title">
							                        <h5>近三个月的订单</h5>
							                    </div>
							                    <div class="ibox-content">
							                        <table class="table table-bordered">
							                            <thead>
							                                <tr>
							                                    <th>月份</th>
							                                    <th>订单总数</th>
							                                    <th>订单总额</th>
							                                </tr>
							                            </thead>
							                            <tbody>
							                            	<c:forEach items="${threeMonth }" var="n" varStatus="idx">
							                                <tr>
							                                    <td>${n.month }</td>
							                                    <td>${n.quantity }</td>
							                                    <td><fmt:formatNumber value="${n.amount }" type="currency" pattern="0.00"/></td>
							                                </tr>
							                                </c:forEach>
							                            </tbody>
							                        </table>
							                    </div>
							                </div>
							            </div>
							        </div>
                                </div>
                            </div>
                        </div>

					</div>
                </div>
            </div>
        </div>
    </div>
    <div class="wrapper wrapper-content">
        
    </div>

    <script src="${ctx }/res/hplus/js/jquery.min.js?v=2.1.4"></script>
    <script src="${ctx }/res/hplus/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="${ctx }/res/hplus/js/plugins/flot/jquery.flot.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/flot/jquery.flot.spline.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/flot/jquery.flot.resize.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/flot/jquery.flot.pie.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/flot/jquery.flot.symbol.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="${ctx }/res/hplus/js/demo/peity-demo.min.js"></script>
    <script src="${ctx }/res/hplus/js/content.min.js?v=1.0.0"></script>
    <script src="${ctx }/res/hplus/js/plugins/jquery-ui/jquery-ui.min.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/easypiechart/jquery.easypiechart.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/sparkline/jquery.sparkline.min.js"></script>
    <script src="${ctx }/res/hplus/js/demo/sparkline-demo.min.js"></script>
    <script>
        $(document).ready(function(){$(".chart").easyPieChart({barColor:"#f8ac59",scaleLength:5,lineWidth:4,size:80});$(".chart2").easyPieChart({barColor:"#1c84c6",scaleLength:5,lineWidth:4,size:80});var data2=[[gd(2012,1,1),7],[gd(2012,1,2),6],[gd(2012,1,3),4],[gd(2012,1,4),8],[gd(2012,1,5),9],[gd(2012,1,6),7],[gd(2012,1,7),5],[gd(2012,1,8),4],[gd(2012,1,9),7],[gd(2012,1,10),8],[gd(2012,1,11),9],[gd(2012,1,12),6],[gd(2012,1,13),4],[gd(2012,1,14),5],[gd(2012,1,15),11],[gd(2012,1,16),8],[gd(2012,1,17),8],[gd(2012,1,18),11],[gd(2012,1,19),11],[gd(2012,1,20),6],[gd(2012,1,21),6],[gd(2012,1,22),8],[gd(2012,1,23),11],[gd(2012,1,24),13],[gd(2012,1,25),7],[gd(2012,1,26),9],[gd(2012,1,27),9],[gd(2012,1,28),8],[gd(2012,1,29),5],[gd(2012,1,30),8],[gd(2012,1,31),25]];var data3=[[gd(2012,1,1),800],[gd(2012,1,2),500],[gd(2012,1,3),600],[gd(2012,1,4),700],[gd(2012,1,5),500],[gd(2012,1,6),456],[gd(2012,1,7),800],[gd(2012,1,8),589],[gd(2012,1,9),467],[gd(2012,1,10),876],[gd(2012,1,11),689],[gd(2012,1,12),700],[gd(2012,1,13),500],[gd(2012,1,14),600],[gd(2012,1,15),700],[gd(2012,1,16),786],[gd(2012,1,17),345],[gd(2012,1,18),888],[gd(2012,1,19),888],[gd(2012,1,20),888],[gd(2012,1,21),987],[gd(2012,1,22),444],[gd(2012,1,23),999],[gd(2012,1,24),567],[gd(2012,1,25),786],[gd(2012,1,26),666],[gd(2012,1,27),888],[gd(2012,1,28),900],[gd(2012,1,29),178],[gd(2012,1,30),555],[gd(2012,1,31),993]];var dataset=[{label:"订单数",data:data3,color:"#1ab394",bars:{show:true,align:"center",barWidth:24*60*60*600,lineWidth:0}},{label:"付款数",data:data2,yaxis:2,color:"#464f88",lines:{lineWidth:1,show:true,fill:true,fillColor:{colors:[{opacity:0.2},{opacity:0.2}]}},splines:{show:false,tension:0.6,lineWidth:1,fill:0.1},}];var options={xaxis:{mode:"time",tickSize:[3,"day"],tickLength:0,axisLabel:"Date",axisLabelUseCanvas:true,axisLabelFontSizePixels:12,axisLabelFontFamily:"Arial",axisLabelPadding:10,color:"#838383"},yaxes:[{position:"left",max:1070,color:"#838383",axisLabelUseCanvas:true,axisLabelFontSizePixels:12,axisLabelFontFamily:"Arial",axisLabelPadding:3},{position:"right",clolor:"#838383",axisLabelUseCanvas:true,axisLabelFontSizePixels:12,axisLabelFontFamily:" Arial",axisLabelPadding:67}],legend:{noColumns:1,labelBoxBorderColor:"#000000",position:"nw"},grid:{hoverable:false,borderWidth:0,color:"#838383"}};function gd(year,month,day){return new Date(year,month-1,day).getTime()}var previousPoint=null,previousLabel=null;$.plot($("#flot-dashboard-chart"),dataset,options);var mapData={"US":298,"SA":200,"DE":220,"FR":540,"CN":120,"AU":760,"BR":550,"IN":200,"GB":120,};$("#world-map").vectorMap({map:"world_mill_en",backgroundColor:"transparent",regionStyle:{initial:{fill:"#e4e4e4","fill-opacity":0.9,stroke:"none","stroke-width":0,"stroke-opacity":0}},series:{regions:[{values:mapData,scale:["#1ab394","#22d6b1"],normalizeFunction:"polynomial"}]},})});
    </script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
    <script>
	$('.subTabs li').click(function(){
		$('.subTabs li.active').removeClass('active');
		$(this).addClass('active');
		var type = $(this).data('type');
		var target = $(this).attr('target');
		$('.tab-pane.active').removeClass('active');
		$('#' + target).addClass('active');
	});
	$('.subTabs li').eq(0).trigger('click');
	</script>
</body>

</html>